<?php
namespace Database;

class Feedback extends Base
{

    public function __construct()
    {
        $this->setModel(MODEL_FEEDBACK);
    }

    public function addData($userId, $type, $fileIds, $content)
    {
        $now = getDateTime();
        $insert = [
            'dry_user' => $userId,
            'dry_feedback_type' => $type,
            'dry_feedback_status' => FEEDBACK_STATUS_NO_REPLY,
            'dry_status' => 0,
            'dry_file' => $fileIds,
            'dry_content' => $content,
            'dry_reply_user' => 0,
            'dry_reply_content' => '',
            'dry_add_time' => $now['date_time']
        ];
        return $this->insert($insert);
    }

}